<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script language="javascript">
function check(){
	if(document.UserUpdatePassword.OldPassword.value==""){
		alert("旧密码不能为空！");
		return false;
	}
	else if(document.UserUpdatePassword.NewPassword.value=="" || document.UserUpdatePassword.VerifyNewPassword.value==""){
		alert("新密码不能为空！");
		return false;
	}
	else if(document.UserUpdatePassword.NewPassword.value!=document.UserUpdatePassword.VerifyNewPassword.value){
		alert("两次密码不一致！");
		return false;
	}	
	else 
		return true;
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改用户信息</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="themes/css/user_manage.css" rel="stylesheet" type="text/css">

  </head>
  
  <body >
<%@ include file="index_top.jsp" %>
	<div class="container">
        <div class="content">         		
            <div class="l_24 append_bottom">
				<div class="l_4"><div class="user_mg_menu">
	
	<div class="m_group">
		<div class="head"><span>个人设置</span></div>
		<ul>
			<li><a href="change_password.jsp?act=editpassword">修改密码 </a></li>
			<li><a href="edit_user_info.jsp?act=edituserinfo">编辑个人信息</a></li>
		</ul>
	</div>
</div>

</div>
				<div class="l_20 last">
					<div class="page_nav">个人设置 &gt;&gt; 修改密码</div>
					<div class="append_bottom">
					 <form id="UserUpdatePassword" name="UserUpdatePassword" method="post" action="ChangePasswdServlet">
						<table class="inputcontainer">
							<tbody><tr>
								<th>
									旧密码：
								</th>
								<td>
									<input id="OldPassword" name="OldPassword" style="width: 200px; height: 22px;" class="input_bg">
									&nbsp;<span style="color:#666666">输入的旧密码</span>
								</td>
							</tr>
							<tr>
								<th>
									新密码：
								</th>
								<td>
									<input id="NewPassword" name="NewPassword" style="width: 200px; height: 22px;" class="input_bg" type="password">
									&nbsp;<span style="color:#666666">输入您的新密码，最好超过10位，确保密码安全</span>
								</td>
							</tr>
							<tr>
								<th>
									再次输入新密码：
								</th>
								<td>
									<input id="VerifyNewPassword" name="VerifyNewPassword" style="width: 200px; height: 22px;" class="input_bg" type="password">
									&nbsp;<span style="color:#666666">请再次输入你的新密码</span>
								</td>
							</tr>
							<tr>
								<th></th>
								<td><input value="确认修改" class="user_button" style="height: 24px;" type="submit" onclick="javascript:return(check());"></td>
							</tr>
						</tbody></table>
					 </form>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<!--底部帮助信息-->
<div class="clear"></div>
</div>
<div style="position: relative; width: 100%; text-align: center;">
<div class="center_">
	<%@ include file="footer.jsp" %>
	</div>
	</div>
</body>
</html>
